package awesome.Threading;


import java.util.Comparator;
import java.util.Vector;

public class priQueueComparator implements Comparator<Vector>{

	public int compare(Vector arg0, Vector arg1) {
		long o1 = (Long)arg0.get(1);
		long o2 = (Long)arg1.get(1);
		
		if((o1) < (o2))
		{
			return(-1);
		}
		else if((o1) > (o2))
		{
			return(1);
		}
		else
		{
			return 0;
		}
	}

}